﻿using System;
using BusinessObjects.Entities;

namespace BusinessObjects.Mappings
{
    public sealed class AddressMap : EntityMapping<AddressEntity, Guid>
    {
        public AddressMap()
        {
            Table("Addresses");
            Map(x => x.Address1).Not.Nullable();
            Map(x => x.Address2).Nullable();
            Map(x => x.City).Not.Nullable();
            Map(x => x.State).Not.Nullable();
            Map(x => x.Zip).Not.Nullable();
        }
    }
}